package com.aglow.eventbus.until;

import android.util.Log;

import com.aglow.eventbus.bean.Event;

import org.greenrobot.eventbus.EventBus;

/**
 * Author: chufeng
 * Email: 392044178@qq.com
 * Date: 2018/12/28 17:38
 * Depict:EventBus工具类
 */
public class EventUntils {
    public static void register(Object oj) {

        EventBus.getDefault().register(oj);
    }
    public static void unregister(Object oj) {
        EventBus.getDefault().unregister(oj);
        Log.i("test","12345");
    }

    public static void post(Event event) {
        Log.i("test","12345");
        EventBus.getDefault().post(event);
    }
    public static void postSticky(Event event){
        EventBus.getDefault().postSticky(event);
    }

}
